package example;

public class TestThread {

	public static void main(String[] args) {
		MyThread[] thread = new MyThread[3];
		for (MyThread value : thread) {
			value = new MyThread();
			value.start();
		}
	}
}

class MyThread extends Thread {
	public void run() {
		for (int i = 0; i < 100; i++)
			System.out.println(this.getName() + ":\t" + i);
	}
}